// Fill out your copyright notice in the Description page of Project Settings.


#include "Component/XGPlayVoiceComponent.h"

#include "Core/XGAudioCaptureSubsystem.h"


int32 UXGPlayVoiceComponent::OnGenerateAudio(float* OutAudio, int32 NumSamples)
{
	int32 i = 0;
	int32 j = 0;
	for (; i < 1024;)
	{
		OutAudio[i] = UXGAudioCaptureSubsystem::InAudios[SoundIndex][j];
		i++;
		j+=2;
		
	}
	SoundIndex++;
	return 1024;
}
